package com.wangfugui.apprentice;

public class Tmp {

    public static final String REGEX = "\\$\\$\\$";

    public static void main(String[] args) {

        String[] parts = "demo$$$desktop.png".split(REGEX);
        if (parts == null || parts.length != 2) {
            throw new IllegalArgumentException("wrong param");
        }
        System.out.println(parts[0]);
        System.out.println(parts[1]);
        System.out.println("demo$$$desktop.png".contains(REGEX));
        System.out.println("demo$$$desktop.png".contains("$$$"));
    }
}
